import request from '@/request/index.js'

const zhpt = 'zhpt' //http://101.42.107.47:30018文档

//获取科技政策列表
export const getProfessorListApi = (data) => {
    return request({
        url: `/api/${zhpt}/scholar/console/search`,
        method: 'POST',
        data
    })
}

//专家学者批量操作
export const professorBatchApi = (data) => {
    return request({
        url: `/api/${zhpt}/scholar/batch`,
        method: 'POST',
        data
    })
}
//专家学者新增
export const addProfessorApi = (data) => {
    return request({
        url: `/api/${zhpt}/scholar/add`,
        method: 'POST',
        data
    })
}

//专家学者编辑
export const editProfessorApi = (data) => {
    return request({
        url: `/api/${zhpt}/scholar/edit`,
        method: 'POST',
        data
    })
}

//专家学者获取详情
export const getProfessorByIdApi = (params) => {
    return request({
        url: `/api/${zhpt}/scholar/console/search/info`,
        method: 'GET',
        params
    })
}